using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class SetDataEncryptionKeyRequest : OrganizationRequest
	{
		public string EncryptionKey
		{
			get
			{
				if (base.Parameters.Contains("EncryptionKey"))
				{
					return (string)base.Parameters["EncryptionKey"];
				}
				return null;
			}
			set
			{
				base.Parameters["EncryptionKey"] = value;
			}
		}
		public bool ChangeEncryptionKey
		{
			get
			{
				return base.Parameters.Contains("ChangeEncryptionKey") && (bool)base.Parameters["ChangeEncryptionKey"];
			}
			set
			{
				base.Parameters["ChangeEncryptionKey"] = value;
			}
		}
		public SetDataEncryptionKeyRequest()
		{
			base.RequestName = "SetDataEncryptionKey";
			this.EncryptionKey = null;
			this.ChangeEncryptionKey = false;
		}
	}
}
